package com.kevin.designpattern.singlenton;

public class InnerClassSingletonTest {
}

class InnerClassSingleton {

    private static class SingletonHolder {

        private static InnerClassSingleton instance = new InnerClassSingleton();

    }

    private InnerClassSingleton() {

    }

    public static InnerClassSingleton getInstance() {
        return SingletonHolder.instance;
    }
}